package com.jimmy.medical.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

/**
 * @Desc: 异常指标（订单添加异常指标使用）

 * @author jimmy

 * @date 2018-04-22
 */
@Entity
@Table(name = "order_exception_data")
public class OrderExceptionData extends AbstractEntity {

	/**指标类型名称*/
	@Column(name = "data_type")
	private String dataType;
	
	/** 指标类型*/
	@ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "measure_id")
    @NotFound(action = NotFoundAction.IGNORE)
    private Measures measure;
	
	/**指标曲线数据*/
	@Column(name = "digital_value")
	private String digitalValue;
	
	/**指标非曲线数据*/
	@Column(name = "non_digital_value")
	private String nonDigitalValue;
	
	/** 对应的订单*/
	@ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "order_id")
    @NotFound(action = NotFoundAction.IGNORE)
    private Order order;
	
    /** 操作人*/
	@Column(name = "create_user")
	private String createUser;
	
	/**操作时间*/
	@Column(name = "create_time", length = 20)
	private String createTime;
	
	/** 更新人*/
	@Column(name = "update_user")
	private String updateUser;
	
	/**更新时间*/
	@Column(name = "update_time", length = 20)
	private String updateTime;

	/**
	 * 指标状态
	 */
	@Column(name = "status", length = 1)
	private String status;

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getDigitalValue() {
		return digitalValue;
	}

	public void setDigitalValue(String digitalValue) {
		this.digitalValue = digitalValue;
	}

	public String getNonDigitalValue() {
		return nonDigitalValue;
	}

	public void setNonDigitalValue(String nonDigitalValue) {
		this.nonDigitalValue = nonDigitalValue;
	}

	public Measures getMeasure() {
		return measure;
	}

	public void setMeasure(Measures measure) {
		this.measure = measure;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	
}
